package com.wwl.designpattern.factory.simplefactory;

import com.wwl.designpattern.factory.ICar;

/**
 * @program: DesignPattern
 * @description: 简单工厂测试
 * @author: wwl
 * @create: 2019-03-13 16:51
 **/
public class SimpleFactoryTest {

    public static void main(String[] args) {
        CarFactory factory = new CarFactory();
        ICar car1 = factory.create("auto");
        car1.start();
        ICar car2 = factory.create("manual");
        car2.start();


    }
}
